package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class TravelQueryObject extends QueryObject {
    private Integer orderType = 1;
    private Integer dayType;
    private Integer perExpendType;
    private String destId;

    public Object getMinDay() {
        return TravelCondition.DAY_MAP.get(dayType).getMin();
    }

    public Object getMaxDay() {
        return TravelCondition.DAY_MAP.get(dayType).getMax();
    }

    public Object getMinPerexpend() {
        return TravelCondition.PEREXPEND_MAP.get(perExpendType).getMin();
    }

    public Object getMaxPerexpend() {
        return TravelCondition.PEREXPEND_MAP.get(perExpendType).getMax();
    }
}
